package com.zhongwang.business.module.basic.service;

import com.zhongwang.business.gen.entity.SellerInfo;
import com.zhongwang.business.module.basic.dao.SellerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SellerBasicService {

    @Autowired
    SellerDao sellerDao;

    public List<SellerInfo> selectList(String sellerName){
        return sellerDao.selectList(sellerName);
    }


    public int saveSeller(SellerInfo sellerInfo) {
        return sellerDao.addSeller(sellerInfo);
    }

    public int updateSeller(SellerInfo sellerInfo) {
        return sellerDao.updateSeller(sellerInfo);
    }

    public int deleteSeller(int id) {
        return sellerDao.deleteSeller(id);
    }
}
